<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-complaintchuli-add">
			<input id="complaintId" name="complaintId" readonly="true" th:value="${complaintId}" type="hidden"/>
			<div class="form-group">
				<label class="col-sm-3 control-label">客户投诉概要</label>
				<div class="col-sm-8">
					<input id="attribute" name="attribute" class="form-control" readonly="readonly" type="text" th:value="${complaint.resumes}" >
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">处理描述：</label>
				<div class="col-sm-8">
					<input id="resumes" name="resumes" class="form-control" type="text">
				</div>
			</div>

			<div class="form-group">	
				<label class="col-sm-3 control-label">处理阶段：</label>
				<div class="col-sm-8">
					<select id="chuliJieDuan" name="chuliJieDuan" class="form-control m-b" th:with="type=${@dict.getType('sys_chuli_jieduan')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
					</select>

				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">处理经过描述：</label>
				<div class="col-sm-8">
					<input id="chuliMiaoShu" name="chuliMiaoShu" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">处理结果：</label>
				<div class="col-sm-8">
					<select id="chuliJieGuo" name="chuliJieGuo" class="form-control m-b" th:with="type=${@dict.getType('sys_chuli_jindu')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
					</select>

				</div>
			</div>

		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/complaintchuli"
		$("#form-complaintchuli-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-complaintchuli-add').serialize());
	        }
	    }
	</script>
</body>
</html>
